////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   INQUIRY_JAVA
// AUTHOR           :   Alex Cheung 
// DATE CREATE      :   2006/02/03
// DESCRIPTION      :   a ROW file for the function, INQUIRY_JAVA
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/02/03   Alex Cheung     1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.report.genericInquiry;

import com.erp.app.common.ProjectConstants;
import com.erp.framework.controller.form.MultiRow;

/**
* <p>A <strong>Row</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the detail childs.
*
* @author          Alex Cheung 
* @version 1.0     2006/02/03
* @since           FrameWork 1.0
*
*/
public class InquiryJavaRow extends MultiRow {

	//DB Table Name: T_INQUIRY_JAVA

	//PK Attributes
	private String inquiryType;                      //DB Column Name: INQUIRY_TYPE
	private String className;                        //DB Column Name: CLASS_NAME

	//Other Attributes
	private byte[] javaSource;                       //DB Column Name: JAVA_SOURCE
	private String createUser;                       //DB Column Name: CREATE_USER
	private String createDate;                       //DB Column Name: CREATE_DATE
	private String updateUser;                       //DB Column Name: UPDATE_USER
	private String updateDate;                       //DB Column Name: UPDATE_DATE
	private String isMainClass;                      //DB Column Name: IS_MAIN_CLASS
	private String javaType;                         //DB Column Name: JAVA_TYPE

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {inquiryType = " + this.inquiryType
			+ "\n, className = " + this.className + "}\n";
		String colStr = "COL: { "
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate
			+ "\n, isMainClass = " + this.isMainClass
			+ "\n, javaType = " + this.javaType + "}\n";
		return "InquiryJavaRow.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getInquiryType() {
		return this.inquiryType;
	}

	public String getClassName() {
		return this.className;
	}

	public byte[] getJavaSource() {
		return this.javaSource;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public String getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public String getIsMainClass() {
		return this.isMainClass;
	}

	public String getJavaType() {
		return this.javaType;
	}

	public void setInquiryType(String inquiryType) {
		this.inquiryType = inquiryType;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public void setJavaSource(byte[] javaSource) {
		this.javaSource = javaSource;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public void setIsMainClass(String isMainClass) {
		this.isMainClass = isMainClass;
	}

	public void setJavaType(String javaType) {
		this.javaType = javaType;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getUniqueKeyPrefixForCachedReport() {
    	return ProjectConstants.PROJECT_PREFIX + "." + inquiryType;
    }
    
    public String getUniqueKeyForCachedReport() {
    	return ProjectConstants.PROJECT_PREFIX + "." + inquiryType + "." + javaType; 
    }

}
